from OS import *
from Program import *
from CPUInstruction import *
from multiprocessing import Queue
from IOInstructionPrinter import *
from IOInstructionScreen import *
from IOInstructionKeyBoard import *  


myOS = OS()
myProg = Program()
myProg.setPriority(1)
myProg2 = Program()
myProg3 = Program()
myProg2.setPriority(2)
in11=CPUInstruction(1,"cpu prog2")
in1=CPUInstruction(2,"cpu prog")
in3=IOInstructionPrinter(1,"printer") 
in5=IOInstructionScreen(2,"screen")
in6=IOInstructionKeyBoard(1,"kb")
myProg.addInstruction(in1)
myProg.addInstruction(in1)
myProg.addInstruction(in3)
myProg.addInstruction(in1)
myProg.addInstruction(in5)
myProg.addInstruction(in1)
myProg2.addInstruction(in3)
myProg.addInstruction(in6)
myProg2.addInstruction(in11)



myOS.addProgram(myProg)
myOS.addProgram(myProg2)

myOS.startUP()
myOS.shutDown()
